var dom = require('dom');

var Animation = require('./src/animation');
var Picture = require('./src/picture');
var Scene = require('./src/scene');
var AnimationMgr = require('./src/animation_mgr');

window.shinyBearAnimationMgrs = new AnimationMgr();

module.exports.easySetup = function(color) {
  var scene = new Scene(color);
  scene.fullscreen();
  dom(document.body).append(scene.el);
  dom(document.body).css({
    'padding': '0px',
    'margin': '0px'
  });
  window.addEventListener('resize', function() {
    scene.fullscreen();
  });
  return scene;
};

module.exports.Picture = Picture;
module.exports.Animation = Animation;
module.exports.dom = dom;
